package cn.com.fig.common;

import java.io.Serializable;

/**
 * 分页请求参数类
 * 
 * @author zhangjun
 * 
 */
public class PaginationReqParam  implements Serializable {

	private static final long serialVersionUID = 1L;
	// 一页显示的记录数
	private int rows = 20;
	// 当前页码
	private int page = 1;
	
	private boolean needSplitPage=true;//分页参数，默认是true,代表是需要分页
	
	public boolean isNeedSplitPage() {

		return needSplitPage;
	}
	public void setNeedSplitPage(boolean needSplitPage) {
		this.needSplitPage = needSplitPage;
	}

	public int getStartIndex() {

		return (page - 1) * rows;
	}

	public int getRows() {
		return rows;
	}
	public void setRows(int rows) {
		this.rows = rows;
	}
	public int getPage() {
		return page;
	}
	public void setPage(int page) {
		this.page = page;
	}
	
	
}
